package com.employee.seckill.mapper;

import com.employee.seckill.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: EmployeeMapper
 * Package: com.employee.seckill.mapper
 * Description:
 *
 * @Author 刘荟雅
 * @Create 2025/9/10 19:01
 * @Version 1.0
 */
@Mapper
public interface EmployeeMapper {
    List<Employee> listAll();

    // 条件分页查询
    List<Employee> listByCondition(@Param("name") String name,
                                   @Param("dept") String dept);

    Employee findById(Long id);

    void insert(Employee emp);

    void update(Employee emp);

    void delete(Long id);
}
